﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FileToVideo.Config
{
    /// <summary>
    /// 设置
    /// </summary>
    public static class Setting
    {
        /// <summary>
        /// 程序名称
        /// </summary>
        public const string AppName = "FileToVideo";

        /// <summary>
        /// 版本号码
        /// </summary>
        public const string Version = "v1.0.0";

        /// <summary>
        /// 视频宽度
        /// </summary>
        public const int width = 1920;

        /// <summary>
        /// 视频高度
        /// </summary>
        public const int height = 1080;

        /// <summary>
        /// 最小帧序列长度
        /// </summary>
        public const int minSequenceLength = 10;

        /// <summary>
        /// 默认帧重复次数
        /// </summary>
        public const int frameRepetition = 30;

        /// <summary>
        /// 最大帧序列长度
        /// </summary>
        public const int maxSequenceLength = 30;

        /// <summary>
        /// 颜色容差
        /// </summary>
        public const double colorTolerance = 20.0;

        /// <summary>
        /// 每秒帧数
        /// </summary>
        public const int FPS = 30;

        /// <summary>
        /// 临时文件
        /// </summary>
        public const string tempFile = "temp.f2v";

        /// <summary>
        /// 缓冲区大小
        /// 默认: 3M
        /// </summary>
        public const long bufferSize = 1024 * 1024 * 3;

        /// <summary>
        /// 允许PHash相似度阈值
        /// <br />
        /// 0 - 100
        /// </summary>
        public const int pHashSimilary = 95;
    }
}
